package com.qining618.cms.ucenter.controller.app.request;

import com.qining618.common.contants.Group;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author flt
 * @date 2019-09-23
 */
@Data
public class AppTokenLoginRequest implements Serializable {

    private static final long serialVersionUID = 2653210412516876687L;

    /**
     * 登录凭证
     */
    @NotBlank(message = "code不能为空", groups = Group.WECHAT_MINI.class)
    private String code;

    /**
     * 加密向量
     */
    @NotBlank(message = "加密向量不能为空", groups = Group.WECHAT_MINI.class)
    private String iv;

    /**
     * 加密数据
     */
    @NotBlank(message = "加密数据不能为空", groups = Group.WECHAT_MINI.class)
    private String encryptedData;

}
